//使用pinia管理路由状态
import { defineStore } from 'pinia';

export const useRouteStore = defineStore('route', {
  state: () => ({
    activeMenu: '/dashboard', // 默认激活的菜单
  }),
  actions: {
    setActiveMenu(menu) {
      this.activeMenu = menu;
    },
  },
});
